$(document).ready(function () {
    window.onresize = function () {
        fnResize();
    }
    document.addEventListener('jpush.receiveRegistrationId', function (event) {
        console.log(event.registrationId)
    }, false)
});

function fnResize() {
    var deviceWidth = document.documentElement.clientWidth || window.innerWidth
    if (deviceWidth >= 750) {
        deviceWidth = 750
    }
    if (deviceWidth <= 320) {
        deviceWidth = 320
    }
    /*
    document.documentElement.style.fontSize = (deviceWidth / 30) + 'px'
    */
    var deviceHeight = document.documentElement.clientHeight || window.innerHeight
    document.getElementById('app').style.height = deviceHeight + 'px';
}
